/*
 * @Author: 华芊芊 huaqianqian@yeah.net
 * @Date: 2023-09-22 10:08:44
 * @LastEditors: 华芊芊 huaqianqian@yeah.net
 * @LastEditTime: 2023-10-30 20:02:17
 * @FilePath: \zmglpt-ui-screen\src\api\market.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'
let paramsTemp = {
  // ...JSON.parse(localStorage.getItem('PICKTIME')),
  columnName: "prov_org_uuid",
  orgUuid: "00000000000000000000000011340001",
}

// 案件总览
export const getCaseTotal = (params = {}) =>
  request({
    url: '/case_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 案值总览
export const getCaseValTotal = (params = {}) =>
  request({
    url: '/case_val_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 物品总览
export const getQtyTotal = (params = {}) =>
  request({
    url: '/case_qty_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 地图数据
export const getCaseMapData = (params = {}) =>
  request({
    url: '/case_map_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// 监管指标
export const getJgNum = (params = {}) =>
  request({
    url: '/case_jg_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// 流程管控
export const getflowNum = (params = {}) =>
  request({
    url: '/case_flow_schema_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 案件来源
export const getCaseFlowSourceNum = (params = {}) =>
  request({
    url: '/case_flow_souce_case_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 案件流程
export const getCaseFlowFlowNum = (params = {}) =>
  request({
    url: '/case_flow_flow_case_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// 案件流程-新
export const getCaseFlowFlowNumNew = (params = {}) =>
  request({
    url: '/case_flow_overdue_warn_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 案件预警
export const getCaseFlowWarnNum = (params = {}) =>
  request({
    url: '/case_flow_flow_warn_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 案件对标数据
export const getCaseBmk = (params = {}) =>
  request({
    url: '/case_bmk_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
  // 重大案件
export const getBigCaseNum = (params = {}) =>
request({
  url: '/importance_case_data_ah_v1/',
  method: 'get',
  params: {...paramsTemp, ...params },
  custom: { catch: true },
})
// 案件对标数据2
export const getCityCaseBmk = (params = {}) =>
  request({
    url: '/home_avg_fake_person_num_city_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
  // 案件对标数据3
export const getCountyCaseBmk = (params = {}) =>
request({
  url: '/home_avg_fake_person_num_county_ah_v1/',
  method: 'get',
  params: { ...paramsTemp, ...params },
  custom: { catch: true },
})
//烟机数量市级对标
export const getSmokeMaSchineCity = (params = {}) =>
  request({
    url: '/smoke_machine_city_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//烟机数量县级对标
export const getSmokeMaSchineCounty = (params = {}) =>
  request({
    url: '/smoke_machine_leaf_county_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//烟叶烟丝市级对标
export const getTobaccoLeafCity = (params = {}) =>
  request({
    url: '/tobacco_leaf_city_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
//烟叶烟丝县级对标
export const getTobaccoLeafCounty = (params = {}) =>
  request({
    url: '/tobacco_leaf_county_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

//当日查获案件列表
export const getLatelyCaseList = (params = {}) =>
  request({
    url: '/lately_case_list/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })


//打假打私-地图左侧-当年查获卷烟数量最多的10个品牌
export const getQtyMaxTop10 = (params = {}) =>
  request({
    url: '/qty_max_top10_list/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })



//打假打私-地图右侧-单位查获卷烟数量排名
export const getCigarQtyRanking = (params = {}) =>
  request({
    url: '/cigar_qty_ranking/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })